-- GENERATED SPELL FOR [Masha Swiftcut] --


function spell0_13088(pUnit, Event) --@Sinister Strike,n/a--
pUnit:FullCastSpellOnTarget(15667,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_13088', 530, 1)
end

function spell1_13088(pUnit, Event) --@Slice and Dice,Self--
pUnit:FullCastSpellOnTarget(6434,pUnit)
pUnit:RegisterEvent('Sorts_13088', 10264, 1)
end

function spell2_13088(pUnit, Event) --@Thrash,Self--
pUnit:FullCastSpellOnTarget(3391,pUnit)
pUnit:RegisterEvent('Sorts_13088', 520, 1)
end

function Sorts_13088(pUnit, Event)
local choix_sorts_13088 = math.random(0, 2)
if choix_sorts_13088 == 0 then
pUnit:RegisterEvent('spell0_13088', 1, 1)
end
if choix_sorts_13088 == 1 then
pUnit:RegisterEvent('spell1_13088', 1, 1)
end
if choix_sorts_13088 == 2 then
pUnit:RegisterEvent('spell2_13088', 1, 1)
end
end

function mob13088_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_13088', math.random(1500, 3000), 1)
end

function mob13088_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob13088_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob13088_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(13088, 1, 'mob13088_Action')
RegisterUnitEvent(13088, 2, 'mob13088_Leave')
RegisterUnitEvent(13088, 3, 'mob13088_Kill')
RegisterUnitEvent(13088, 4, 'mob13088_Die')
